<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
 
<xsl:output method="html" indent="yes" encoding="UTF-8" />

<xsl:variable name="linkbeginn" select="'http://partners.webmasterplan.com/click.asp?ref=261205&amp;site=3446&amp;type=text&amp;tnb=31&amp;diurl=http://tracking.quisma.com/c.cfs?pid=510615297S900552T&amp;qulink=http://www.yves-rocher.de'"/>
<xsl:variable name="linkende" select="'?shopId=SEM&amp;newsLetterId=affilinetdb&amp;refid=affilinet&amp;DCMP=AFC-00100_affilinet&amp;attribute=db'"/>
<!--
http://partners.webmasterplan.com/click.asp?ref=261205&site=3446&type=text&tnb=31&diurl=http://tracking.quisma.com/c.cfs?pid=510615297S900552T&qulink=http://www.yves-rocher.de
/control/product/~product_id=78618/~category_id=4050
?shopId=SEM&newsLetterId=affilinetdb&refid=affilinet&DCMP=AFC-00100_affilinet&attribute=db
-->
<xsl:template match="/">
	<html>
	<head>
	<link rel="stylesheet" href="css/style.css" type="text/css"></link>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
	</head>
	<body>
	<table class="yves" cellspacing="0">
		<xsl:variable name="tr" select="//tr[td[@class='presprod_image']]"/>
		<xsl:apply-templates select="$tr"/>
	</table>
	</body>
	</html>
</xsl:template>
<xsl:template match="tr">
	<xsl:variable name="link" select="td[@class='presprod_image']/a/@href" />
	<tr>
		<td>
			<a target="_top" href="{concat($linkbeginn, concat($link,$linkende))}"><xsl:apply-templates select="td[@class='presprod_image']/a/img"/></a>
		</td>
		<td>
			<div>
			<xsl:apply-templates select="td[@class='presprod description']"/>
			</div>
			<div>
			<xsl:apply-templates select="td[@class='presprod reference']/span"/>
			</div>
		</td>
	</tr>
</xsl:template>

<xsl:template match="span">
	<b class="{@class}"><xsl:value-of select="."/></b><xsl:text> </xsl:text>
</xsl:template>

<xsl:template match="td">
	<xsl:value-of select="text()"/><br/>
</xsl:template>

<xsl:template match="img">
	<img src="{concat('http://www.yves-rocher.de' ,@src)}" alt="{@alt}"></img>
</xsl:template>

<!--
<xsl:template match="@*|node()" >
	<xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>
</xsl:template>
-->
</xsl:stylesheet>